package org.jeecg.modules.demo.safemanage.zyhazardinvestigation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.safemanage.zyhazardinvestigation.entity.ZyHazardInvestigation;
import org.jeecg.modules.demo.safemanage.zyhazardinvestigation.entity.ZyRectificationInformation;
import org.jeecg.modules.demo.safemanage.zyhazardinvestigation.entity.ZyReviewInformation;
import org.jeecg.modules.demo.safemanage.zyhazardinvestigation.vo.ZyHazardInvestigationFinishStatusVo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 中阳隐患排查信息
 * @Author: jeecg-boot
 * @Date:   2024-03-20
 * @Version: V1.0
 */
public interface IZyHazardInvestigationService extends IService<ZyHazardInvestigation> {

	/**
	 * 添加一对多
	 *
	 * @param zyHazardInvestigation
	 * @param zyRectificationInformationList
	 * @param zyReviewInformationList
	 */
	public void saveMain(ZyHazardInvestigation zyHazardInvestigation, List<ZyRectificationInformation> zyRectificationInformationList, List<ZyReviewInformation> zyReviewInformationList) ;
	
	/**
	 * 修改一对多
	 *
   * @param zyHazardInvestigation
   * @param zyRectificationInformationList
   * @param zyReviewInformationList
	 */
	public void updateMain(ZyHazardInvestigation zyHazardInvestigation,List<ZyRectificationInformation> zyRectificationInformationList,List<ZyReviewInformation> zyReviewInformationList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);



    public List<ZyHazardInvestigationFinishStatusVo> getFinishStatusVoList(String startDate,String endDate,String siteId);


	List<ZyHazardInvestigationFinishStatusVo> getWeeklyFinishStatusVoList(String startDateStr, String endDateStr, String siteId);

	List<ZyHazardInvestigationFinishStatusVo> getMonthlyFinishStatusVoList(String startDateStr, String endDateStr, String siteId);
}
